import router from './index';
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css'// progress bar style
NProgress.configure({ showSpinner: false });

router.beforeEach((to, from, next) => {
	NProgress.start();
	next();
})

router.afterEach(() => {
	NProgress.done();
})
